﻿using System.Runtime.Serialization;
using System;

namespace NetBay.Core.BusinessEntities.Workflow
{
    /// <summary>
    /// DO NOT CHANGE order of the enum field, cause number is mapped with T_REF_WORKFLOW_TYPE
    /// </summary>
    [DataContract]
    [Serializable]
    public enum WorkflowState
    {
        [EnumMember]
        None = 0,
        [EnumMember]
        Running = 1,
        [EnumMember]
        Validated = 2,
        [EnumMember]
        Rejected = 3,
        [EnumMember]
        Transfered = 4,
        [EnumMember]
        Indexed = 5,
        [EnumMember]
        Finished = 6,
        [EnumMember]
        Started = 7,
        [EnumMember]
        Faulted= 8,
        [EnumMember]
        Replied = 9,
        [EnumMember]
        Aborted = 10,
        [EnumMember]
        Enveloping = 11,
        [EnumMember]
        Read = 12,
        [EnumMember]
        ToValidate = 13,
        [EnumMember]
        ToIndex = 14,
        [EnumMember]
        All = 15,
        [EnumMember]
        Ventilated = 16,
        [EnumMember]
        Revived = 17,
        [EnumMember]
        AllDocumentsInFolder = 18,
    }
}
